/*
 * Helstius--Basic chemistry application
 * This program is free software: you can redistribute it and/or modify
 it under the terms of the GNU General Public License as published by
 the Free Software Foundation, either version 3 of the License, or
 (at your option) any later version.

 This program is distributed in the hope that it will be useful,
 but WITHOUT ANY WARRANTY; without even the implied warranty of
 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 GNU General Public License for more details.
 * Copyright 2012 Jaked122
 */
package org.helstius.Gui;

import java.util.Collection;
import java.util.List;
import java.awt.Color;

/**
 * <p>
 * Interface implements a fairly basic means of accessing a chart's data and
 * providing for potentially mimicking the visual style, especially for the
 * petaldiagram which does not lend itself to easy labelling otherwise.
 * </p>
 * 
 * @author Jaked122
 * 
 */
public interface IChart {
	/**
	 * Add data to the chart.
	 * 
	 * @param data
	 */
	public void addData(int[] data);

	/**
	 * set the data in the chart.
	 * 
	 * @param data
	 */
	public void setData(int[] data);

	/**
	 * obtain the color which is specific to a data element in a chart.
	 * 
	 * @param element the number of the data.
	 * @return the color that hopefully represents it.
	 */
	public Color getElementColor(int element);

	public int[] getData();

	public void addNames(String[] names);

	public String[] getNames();
}
